using MongoDB.Bson;
using MongoDB.Bson.Serialization.Attributes;
using System.Text.Json.Serialization;

namespace newApi.Models;
public class news
{
    [BsonId]
    [BsonRepresentation(BsonType.ObjectId)]
    public string? Id { get; set; }

    public string title { get; set; }=null!;
    public string channel { get; set; }=null!;
    public string time {get;set;}=null!;
    public string src {get;set;}=null!;
    public string category {get;set;}=null!;
    public string pic {get;set;}=null!;
    public string content {get;set;}=null!;
    public string url {get;set;}=null!;
    public string weburl {get;set;}=null!;




  
}